Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support


#13:    Math

Version:    1.0                                                September 1988

APW Components:    Math.Aii                       30 Aug 88
                   Math.Init.Aii                  18 Aug 88
                   Math.Root                      30 Aug 88
                   Math.Macros                    18 Aug 88
                   Math.A                         30 Aug 88
                   Math                           30 Aug 88

MPW Components:    Math.Aii                       29 Jul 88
                   Math.Init.Aii                  14 Jul 88
                   Makefile                       15 Jul 88

This sample program demonstrates how to use the Apple IIGS Integer Math and 
SANE tools in a 65816 assembly language application.
_____________________________________________________________________________

Math produces graphical displays of four waveforms:  a sine curve generated 
from Integer Math Frac numbers, an integer Fast Fourier Transform, a sine 
curve generated via SANE, and a SANE FFT.  SANE operations favor numerical 
accuracy over speed, so the two SANE waveforms take time to calculate.  The 
SANE FFT takes over a minute (no, the demo hasn't crashed).

Use APW 1.0 and Apple IIGS System Disk 3.2 or later to execute the Math file 
included with the APW-compatible source code files.  To create a load file 
under APW, issue the following command:  ASML Math.Aii Keep=Math.

MPW IIGS users need MPW 2.02, MPW IIGS Tools 1.0, and any version of the MPW 
IIGS assembler.  The program name needed by the MPW Build menu's Build option 
is Math.

